# Maintainer: psykose <alice@ayaya.dev>
pkgname=lsp-dsp-lib
pkgver=1.0.3
pkgrel=0
pkgdesc="DSP library for signal processing"
url="https://github.com/lsp-plugins/lsp-dsp-lib"
arch="aarch64 armv7 x86 x86_64"
license="LGPL-3.0-or-later"
depends_dev="$pkgname"
makedepends="linux-headers"
subpackages="$pkgname-static $pkgname-dev"
source="https://github.com/lsp-plugins/lsp-dsp-lib/releases/download/$pkgver/lsp-dsp-lib-src-$pkgver.tar.gz"
builddir="$srcdir/lsp-dsp-lib"
options="!check" # no tests

build() {
	make PREFIX=/usr config
	make
}

package() {
	make CXX_INSTALL_HEADERS=1 DESTDIR="$pkgdir" install
}

dev() {
	default_dev
	mv "$subpkgdir"/usr/lib/*.so "$pkgdir"/usr/lib
}

sha512sums="
16d1e490e3d9be0c8ccc07ed9593b34183676efab1a8648421cb4ace88c994402019d3ab62e03dbb6cc331dfcc2b063b59ca26f50bbb3e883ea466277e85d747  lsp-dsp-lib-src-1.0.3.tar.gz
"
